package com.wd.dao;

import com.wd.domain.CategoryBlogCount;
import com.wd.entity.Category;

import java.sql.SQLException;
import java.util.List;

public interface CategoryDao {
    /**
     * 查询友情链接总数
     * @return
     */
    public int selAllCategoryCount() throws SQLException;

    public List<Category> selAllCategory() throws  Exception;

    public int insCategory(Category category) throws  Exception;

    public int delCategory(int id) throws Exception;

    public int updCategory(Category category) throws Exception;

    public Category selCategoryById(int id) throws  Exception;

    public List<CategoryBlogCount> selCategoryBlogCount() throws Exception;

    //分页查询
    public List<Category> selCategoryByPage(int currentPage, int pageCount) throws Exception;


}
